<template>
    <el-dialog
            title="提示"
            :visible.sync="dialogVisible"
            :close-on-click-modal="false"
            width="30%">
        <span>{{msg}}</span>
        <span slot="footer" class="dialog-footer">
            <el-button type="primary" @click="yes">确定</el-button>
        </span>
    </el-dialog>
</template>

<script>
    export default {
        name: "TipsDialog",
        props: {
            dialogVisible: {
                type: Boolean,
                default: false
            },
            msg: {
                type: String,
                default: ''
            }
        },
        methods: {
            yes() {
                this.$emit('yes');
            }
        }
    }
</script>

<style scoped>

</style>
